package com.lw.vue_shop_server.controller;

import com.lw.vue_shop_server.service.impl.PermissionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class PermissionController {

    @Autowired
    public PermissionServiceImpl permissionService;

    @GetMapping("/rights/{type}")
    public Map getrights(@PathVariable(value = "type")String type){
        return permissionService.getrights(type);
    }
}
